package com.zhen.netty.nio;

/**
 * Created with IntelliJ IDEA.
 * User: zhen-desktop
 * Date: 2018/11/29
 * Time: 22:56
 */
public class TimeServer {

    public static void main(String[] args) {

        int port = 8080;
        if(args != null && args.length > 0){
            try{
                port = Integer.parseInt(args[0]);
            }catch (NumberFormatException e){
                e.printStackTrace();
            }
        }

        MultiplexerTimeServer timeServer = new MultiplexerTimeServer(port);
        new Thread(timeServer,"NIO-MultiplexerTimeServer-001").start();
    }

}
